package com.adcc.ags.cgw.service;

import com.adcc.ags.cgw.entity.msg.CGWMsg;
import com.adcc.ags.cgw.entity.user.User;

/**
 * 消息过滤服务
 */
public abstract class MsgFilterService extends BaseActorService{

    /**
     * 匹配路由
     * @param element
     * @param route
     * @return
     */
    protected abstract boolean matchRoute(String element, String... route);

    /**
     * 匹配路由
     * @param element
     * @param route
     * @return
     */
    protected abstract boolean matchRoute(String[] element, String... route);

    /**
     * 匹配路由
     * @param element
     * @param start
     * @param route
     * @return
     */
    protected abstract boolean matchRoute(String element, int start, String route);

    /**
     * 过滤报文
     * @param msg
     * @return
     */
    protected abstract boolean filter(CGWMsg msg);
}
